package way_point_factory;
/*
 * Using this Abstract Factory pattern a framework is defined, which produces
 * objects that follow a general pattern and at runtime this factory is paired
 * with any concrete factory to produce objects that follow the pattern of a
 * certain MBDA Exocet waypoint. In other words, the Abstract Factory is a super-factory
 * which creates other factories (Factory of factories).
 */

/**
 *
 * @author Kevin Doyle
 */
public class Client {

    public static void main(String[] args) {
        WayPointFactory exocetwpfactory = new ExocetWPFactory();

        WayPoint waypoint = exocetwpfactory.orderWP("Exocet", "FinalWP");
        waypoint = exocetwpfactory.orderWP("Exocet", "InitialWP");
        waypoint = exocetwpfactory.orderWP("Exocet", "JinkWP");
        waypoint = exocetwpfactory.orderWP("Exocet", "MajorWP");
        waypoint = exocetwpfactory.orderWP("Exocet", "MinorWP");
    }
}
